package com.woniuxueyuan.entity.dto;

import com.woniuxueyuan.entity.Address;
import com.woniuxueyuan.entity.User;
import org.springframework.beans.BeanUtils;

public class AddressDTO {
    private Integer id;
    private String province;
    private String city;
    private String area;
    public AddressDTO(Address address){
        //把PO属性赋值给DTO
        //参数1：po  参数2：DTO
        BeanUtils.copyProperties(address,this);
    }
}
